﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Quanlytruongtruongtieuhoc
{
    public partial class frmPhanconggiangday : Form
    {
        public static int dem = 0;
        public frmPhanconggiangday()
        {
            InitializeComponent();
        }

        private void frmPhanconggiangday_Load(object sender, EventArgs e)
        {
            //if (dem == 0)
            //{
            //    menuStrip1.Items[0].Enabled = true;
            //    menuStrip1.Items[1].Enabled = true;
            //}
        }

        private void phânCôngGiáoViênChủNhiệmToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmPhanconggvchunhiem.hien == 0)
            {
                frmPhanconggvchunhiem A = new frmPhanconggvchunhiem();
                A.MdiParent = this;
                A.Show();
                dem = 1;
                frmPhanconggvchunhiem.hien = 1;
            }
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            frmMain A = new frmMain();
            A.Show();
        }

        private void phânCôngGiáoViênDạyMônToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmPhanconggiaovien.hien == 0)
            {
                frmPhanconggiaovien A = new frmPhanconggiaovien();
                A.MdiParent = this;
                A.Show();
                dem = 1;
                frmPhanconggiaovien.hien = 1;
            }
        }
    }
}
